From 4dd7eb9f0914278ff9e4a9847788aa4ff9dc8c47 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 3 Sep 2009 09:49:41 +0100 Subject: [PATCH] xm: Add "tap2" to attach blocktap disks to VM I detected a problem when using XenAPI. When I started a VM by using xm create command, blocktap disks were not attached to the VM. Signed-off-by: Masaki Kanno --- tools/python/xen/xm/xenapi_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index bb816f278b..cb7130bebc 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -594,7 +594,7 @@ class sxp2xml: if len(child) > 0 and child[0] == "device"] vbds_sxp = map(lambda x: x[1], [device for device in devices - if device[1][0] in ("vbd", "tap")]) + if device[1][0] in ("vbd", "tap", "tap2")]) vifs_sxp = map(lambda x: x[1], [device for device in devices if device[1][0] == "vif"]) -- 2.30.2